
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.2 基础Bootstrap CSS · Girls Coding Day Tutorial</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Yang Wen <wenyang@codingirls.club>">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="3-Components.html" />
    
    
    <link rel="prev" href="1-Grid.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://girlscodingday.org/" target="_blank" class="custom-link">Girls Coding Day</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Kickoff/">
            
                <a href="../Kickoff/">
            
                    
                    KickOff Party
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Kickoff/1-Teaching-Target.html">
            
                <a href="../Kickoff/1-Teaching-Target.html">
            
                    
                    1.1 教学目的
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Kickoff/2-Software-Tool.html">
            
                <a href="../Kickoff/2-Software-Tool.html">
            
                    
                    1.2 软件和工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Kickoff/3-Learning-Method.html">
            
                <a href="../Kickoff/3-Learning-Method.html">
            
                    
                    1.3 教学方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../Kickoff/4-Web-Basics.html">
            
                <a href="../Kickoff/4-Web-Basics.html">
            
                    
                    1.4 WEB基本知识和历史
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../Kickoff/5-Pre-Homework.html">
            
                <a href="../Kickoff/5-Pre-Homework.html">
            
                    
                    1.5 课前自学
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../HTML/">
            
                <a href="../HTML/">
            
                    
                    Intro to HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../HTML/1-HTML-Basics.html">
            
                <a href="../HTML/1-HTML-Basics.html">
            
                    
                    2.1 初识HTML
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../HTML/2-Common-HTML.html">
            
                <a href="../HTML/2-Common-HTML.html">
            
                    
                    2.2 HTML常用术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../HTML/3-Webpage-Anatomy.html">
            
                <a href="../HTML/3-Webpage-Anatomy.html">
            
                    
                    2.3 解剖网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../HTML/4-Best-Practice.html">
            
                <a href="../HTML/4-Best-Practice.html">
            
                    
                    2.4 动手 - 修改更多HTML
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../CSS/">
            
                <a href="../CSS/">
            
                    
                    Intro to CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../CSS/1-CSS-Basics.html">
            
                <a href="../CSS/1-CSS-Basics.html">
            
                    
                    3.1 初识CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../CSS/2-Common-CSS.html">
            
                <a href="../CSS/2-Common-CSS.html">
            
                    
                    3.2 CSS常用术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../CSS/3-Box-Model.html">
            
                <a href="../CSS/3-Box-Model.html">
            
                    
                    3.3 CSS盒子模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../CSS/4-Chrome-Developer-Tool.html">
            
                <a href="../CSS/4-Chrome-Developer-Tool.html">
            
                    
                    3.4 使用Chrome开发者工具调试样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../CSS/5-CSS-Best-Practice.html">
            
                <a href="../CSS/5-CSS-Best-Practice.html">
            
                    
                    3.5 动手 - 修改更多CSS样式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                    Intro to Bootstrap
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="1-Grid.html">
            
                <a href="1-Grid.html">
            
                    
                    4.1 布局
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.2" data-path="2-Bootstrap-CSS.html">
            
                <a href="2-Bootstrap-CSS.html">
            
                    
                    4.2 基础Bootstrap CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="3-Components.html">
            
                <a href="3-Components.html">
            
                    
                    4.3 组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Project.html">
            
                <a href="../Project.html">
            
                    
                    大作业
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Share.html">
            
                <a href="../Share.html">
            
                    
                    分享
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >4.2 基础Bootstrap CSS</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x57FA;&#x7840;bootstrap-css">&#x57FA;&#x7840;Bootstrap CSS</h1>
<blockquote>
<p>&#x8BBE;&#x7F6E;&#x5168;&#x5C40; CSS &#x6837;&#x5F0F;&#xFF1B;&#x57FA;&#x672C;&#x7684; HTML &#x5143;&#x7D20;&#x5747;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; class &#x8BBE;&#x7F6E;&#x6837;&#x5F0F;&#x5E76;&#x5F97;&#x5230;&#x6F02;&#x4EAE;&#x7684;&#x6548;&#x679C;&#x3002;</p>
</blockquote>
<h2 id="&#x4E00;&#x3001;&#x6392;&#x7248;-typography">&#x4E00;&#x3001;&#x6392;&#x7248; Typography</h2>
<h3 id="1-&#x6807;&#x9898;">1. &#x6807;&#x9898;</h3>
<p>&#x5728;Bootstrap&#x4E2D;&#x4F7F;&#x7528;&#x6807;&#x9898;&#x7684;&#x65B9;&#x5F0F;&#x548C;&#x5E38;&#x89C4;html&#x4E00;&#x6837;&#xFF1A;&#x4ECE;<code>&lt;h1&gt;</code>&#x5230;<code>&lt;h6&gt;</code>&#x5206;&#x522B;&#x4ECE;&#x5927;&#x5230;&#x5C0F;&#x5B89;&#x6392;&#x6807;&#x9898;&#x5143;&#x7D20;&#xFF0C;&#x53EA;&#x4E0D;&#x8FC7;&#x5728;Bootstrap&#x4E2D;&#x91CD;&#x65B0;&#x8BBE;&#x7F6E;&#x4E86;&#x5176;&#x9ED8;&#x8BA4;&#x6837;&#x5F0F;&#xFF0C;&#x4ECE;&#x6E90;&#x7801;&#x4E2D;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6709;&#x5982;&#x4E0B;&#x5171;&#x6027;&#xFF1A;</p>
<p>&#x5B57;&#x4F53;&#x989C;&#x8272;&#x4E0E;&#x5B57;&#x4F53;&#x6837;&#x5F0F;&#x7EE7;&#x627F;&#x81EA;&#x7236;&#x5143;&#x7D20;&#xFF0C;&#x5B57;&#x4F53;&#x7C97;&#x7EC6;&#x4E3A;500&#xFF0C;&#x4E14;&#x884C;&#x9AD8;&#x5168;&#x90E8;&#x8BBE;&#x4E3A;1.1&#xFF08;&#x4E5F;&#x5C31;&#x662F;font-size&#x7684;1.1&#x500D;&#xFF09;</p>
<pre><code class="lang-css">{
    <span class="hljs-attribute">font-family</span>: inherit;
    <span class="hljs-attribute">font-weight</span>: <span class="hljs-number">500</span>;
    <span class="hljs-attribute">line-height</span>: <span class="hljs-number">1.1</span>;
    <span class="hljs-attribute">color</span>: inherit;
}
</code></pre>
<p>&#x5728;&#x4E0D;&#x540C;&#x5927;&#x5C0F;&#x7684;&#x6807;&#x9898;&#x4E2D;&#x6709;&#x7740;&#x5982;&#x4E0B;&#x533A;&#x522B;&#xFF1A;</p>
<p>&#x5728;Bootstrap&#x4E2D;&#x5BF9;&#x4E8E;&#x4E0D;&#x540C;&#x7EA7;&#x522B;&#x6807;&#x9898;&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x8BBE;&#x7F6E;&#x4E3A;&#xFF1A;<strong>h1=36px&#xFF0C;h2=30px&#xFF0C;h3=24px&#xFF0C;h4=18px&#xFF0C;h5=14px&#x548C;h6=12px</strong>&#x3002;
&#x91CD;&#x65B0;&#x8BBE;&#x7F6E;&#x4E86;<code>.margin-top</code>&#x548C;<code>.margin-bottom</code>&#x7684;&#x503C;&#xFF0C;<strong>h1~h3</strong> &#x91CD;&#x7F6E;&#x540E;&#x7684;&#x503C;&#x90FD;&#x662F;<strong>20px</strong>&#xFF1B;<strong>h4~h6</strong>&#x91CD;&#x7F6E;&#x540E;&#x7684;&#x503C;&#x90FD;&#x662F;<strong>10px</strong>&#x3002;</p>
<p>&#x9664;&#x6B64;&#x4E4B;&#x5916;&#x5728;Bootstrap&#x4E2D;&#x4E3A;&#x4E86;<strong>&#x8BA9;&#x975E;&#x6807;&#x9898;&#x5143;&#x7D20;&#x548C;&#x6807;&#x9898;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684;&#x6837;&#x5F0F;</strong>&#xFF0C;&#x8FD8;&#x7279;&#x610F;&#x5B9A;&#x4E49;&#x4E86;<code>.h1~.h6</code>&#x516D;&#x4E2A;&#x7C7B;&#x540D;&#x3002;&#x5982;&#x4E0B;&#x6240;&#x793A;&#xFF1A;</p>
<p>&#x5728;Bootstrap&#x4E2D;&#xFF0C;&#x4E0B;&#x9762;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x663E;&#x793A;&#x6548;&#x679C;&#x76F8;&#x540C;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-comment">&lt;!--Bootstrap&#x4E2D;&#x7684;&#x6807;&#x9898;--&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E00;<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h2</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E8C;<span class="hljs-tag">&lt;/<span class="hljs-name">h2</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h3</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E09;<span class="hljs-tag">&lt;/<span class="hljs-name">h3</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h4</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x56DB;<span class="hljs-tag">&lt;/<span class="hljs-name">h4</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E94;<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">h6</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x516D;<span class="hljs-tag">&lt;/<span class="hljs-name">h6</span>&gt;</span>
<span class="hljs-comment">&lt;!--Bootstrap&#x4E2D;&#x8BA9;&#x975E;&#x6807;&#x9898;&#x5143;&#x7D20;&#x548C;&#x6807;&#x9898;&#x4F7F;&#x7528;&#x76F8;&#x540C;&#x7684;&#x6837;&#x5F0F;--&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;h1&quot;</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E00;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;h2&quot;</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E8C;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;h3&quot;</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E09;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;h4&quot;</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x56DB;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;h5&quot;</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x4E94;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;h6&quot;</span>&gt;</span>Bootstrap&#x6807;&#x9898;&#x516D;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<h3 id="2-&#x6587;&#x672C;&#x683C;&#x5F0F;">2. &#x6587;&#x672C;&#x683C;&#x5F0F;</h3>
<h4 id="21-&#x6B63;&#x6587;&#x6587;&#x672C;">2.1 &#x6B63;&#x6587;&#x6587;&#x672C;</h4>
<p>Bootstrap&#x4E2D;&#x7684;&#x6587;&#x672C;&#x5168;&#x5C40;&#x6837;&#x5F0F;&#x5982;&#x4E0B;&#xFF1A;</p>
<ol>
<li>&#x5B57;&#x4F53;&#x5927;&#x5C0F;&#x4E3A;14px</li>
<li>&#x884C;&#x9AD8;&#x4E3A;1.42867143&#xFF08;&#x7EA6;&#x7B49;&#x4E8E;20px&#xFF09;</li>
<li>&#x5B57;&#x4F53;&#x989C;&#x8272;&#x4E3A;#333</li>
<li>p&#x6807;&#x7B7E;&#x5916;&#x90E8;&#x6709;&#x7740;10&#x4E2A;&#x50CF;&#x7D20;&#x7684;&#x4E0B;&#x5916;&#x8FB9;&#x8DDD;margin-bottom:10px;</li>
</ol>
<h4 id="22-&#x5F3A;&#x8C03;">2.2 &#x5F3A;&#x8C03;</h4>
<h5 id="&#x5B57;&#x4F53;&#x98CE;&#x683C;">&#x5B57;&#x4F53;&#x98CE;&#x683C;</h5>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;lead&quot;</span>&gt;</span>lead<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span><span class="hljs-comment">&lt;!-- &#x5B57;&#x4F53;&#x53D8;&#x5927;&#xFF0C;&#x884C;&#x9AD8;&#x53D8;&#x5927;&#xFF0C;&#x4E0B;&#x5916;&#x8FB9;&#x8DDD;&#x53D8;&#x5927; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">i</span>&gt;</span>i<span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span><span class="hljs-comment">&lt;!--&#x65E0;&#x7279;&#x6B8A;&#x610F;&#x4E49;&#xFF0C; &#x659C;&#x4F53; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">small</span>&gt;</span>small<span class="hljs-tag">&lt;/<span class="hljs-name">small</span>&gt;</span><span class="hljs-comment">&lt;!-- &#x5C0F;&#x53F7;&#x5B57;&#x4F53;--&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">strong</span>&gt;</span>strong<span class="hljs-tag">&lt;/<span class="hljs-name">strong</span>&gt;</span><span class="hljs-comment">&lt;!-- &#x8BED;&#x6C14;&#x5F3A;&#x70C8;&#x7684;&#x5F3A;&#x8C03;&#xFF0C;&#x7C97;&#x4F53; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">em</span>&gt;</span>em<span class="hljs-tag">&lt;/<span class="hljs-name">em</span>&gt;</span><span class="hljs-comment">&lt;!-- &#x5F3A;&#x8C03;&#xFF0C;&#x659C;&#x4F53; --&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">mark</span>&gt;</span>mark<span class="hljs-tag">&lt;/<span class="hljs-name">mark</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">del</span>&gt;</span>del<span class="hljs-tag">&lt;/<span class="hljs-name">del</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">s</span>&gt;</span>s<span class="hljs-tag">&lt;/<span class="hljs-name">s</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">ins</span>&gt;</span>ins<span class="hljs-tag">&lt;/<span class="hljs-name">ins</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">u</span>&gt;</span>u<span class="hljs-tag">&lt;/<span class="hljs-name">u</span>&gt;</span>
</code></pre>
<h5 id="&#x5F3A;&#x8C03;&#x76F8;&#x5173;&#x7684;&#x7C7B;">&#x5F3A;&#x8C03;&#x76F8;&#x5173;&#x7684;&#x7C7B;</h5>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-muted&quot;</span>&gt;</span>&#x63D0;&#x793A;&#xFF0C;&#x4F7F;&#x7528;&#x6D45;&#x7070;&#x8272;&#xFF08;#999&#xFF09;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-primary&quot;</span>&gt;</span>&#x4E3B;&#x8981;&#xFF0C;&#x4F7F;&#x7528;&#x84DD;&#x8272;&#xFF08;#428bca&#xFF09;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-success&quot;</span>&gt;</span>&#x6210;&#x529F;&#xFF0C;&#x4F7F;&#x7528;&#x6D45;&#x7EFF;&#x8272;(#3c763d)<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-info&quot;</span>&gt;</span>&#x901A;&#x77E5;&#x4FE1;&#x606F;&#xFF0C;&#x4F7F;&#x7528;&#x6D45;&#x84DD;&#x8272;&#xFF08;#31708f&#xFF09;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-warning&quot;</span>&gt;</span>&#x8B66;&#x544A;&#xFF0C;&#x4F7F;&#x7528;&#x9EC4;&#x8272;&#xFF08;#8a6d3b&#xFF09;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-danger&quot;</span>&gt;</span>&#x5371;&#x9669;&#xFF0C;&#x4F7F;&#x7528;&#x8910;&#x8272;&#xFF08;#a94442&#xFF09;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
</code></pre>
<p>&#x5229;&#x7528;&#x300C;&#x6574;&#x4F53;&#x5B66;&#x4E60;&#x6CD5;&#x300D;&#x4E2D;&#x7684;&#x300C;&#x53EF;&#x89C6;&#x5316;&#x6280;&#x5DE7;&#x300D;&#xFF0C;&#x628A;&#x989C;&#x8272;&#x548C;&#x8FD9;6&#x4E2A;&#x5355;&#x8BCD;&#x7684;&#x610F;&#x4E49;&#x5728;&#x5927;&#x8111;&#x4E2D;&#x8054;&#x60F3;&#x8D77;&#x6765;&#x5427; &#xFF1A;&#xFF09;  </p>
<h3 id="23-&#x6587;&#x672C;&#x5BF9;&#x9F50;">2.3 &#x6587;&#x672C;&#x5BF9;&#x9F50;</h3>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-left&quot;</span>&gt;</span>&#x6211;&#x5C45;&#x5DE6;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-center&quot;</span>&gt;</span>&#x6211;&#x5C45;&#x4E2D;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-right&quot;</span>&gt;</span>&#x6211;&#x5C45;&#x53F3;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">p</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;text-justify&quot;</span>&gt;</span>&#x6211;&#x4E24;&#x7AEF;&#x5BF9;&#x9F50;<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
</code></pre>
<p>&#x8BF7;&#x81EA;&#x884C;&#x9605;&#x8BFB;&#x5B98;&#x65B9;&#x6587;&#x6863;&#x6709;&#x5173;&#x6982;&#x5FF5;&#xFF1A;&#x6539;&#x53D8;&#x5927;&#x5C0F;&#x5199;&#x3001;&#x7F29;&#x7565;&#x8BED;&#x3001;&#x5730;&#x5740;&#x3001;&#x5F15;&#x7528;&#x3002;</p>
<h3 id="24-&#x5217;&#x8868;">2.4 &#x5217;&#x8868;</h3>
<p>&#x5728;Bootstrap&#x4E2D;&#x5BF9;&#x4E8E;&#x5217;&#x8868;&#x7684;&#x8BBE;&#x7F6E;&#x4E0E;&#x539F;&#x751F;&#x7684;html&#x57FA;&#x672C;&#x4E00;&#x81F4;&#xFF0C;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x6709;&#xFF1A;</p>
<ol>
<li>&#x5728;&#x5217;&#x8868;&#x4E4B;&#x95F4;&#x6709;10px&#x7684;&#x4E0B;&#x5916;&#x8FB9;&#x8DDD;</li>
<li>&#x5728;&#x5D4C;&#x5957;&#x5217;&#x8868;&#x4E2D;&#xFF0C;&#x4E0D;&#x542B;&#x6709;&#x4E0B;&#x8FB9;&#x8DDD;</li>
</ol>
<p>Bootstrap&#x5F53;&#x7136;&#x4E0D;&#x4F1A;&#x5C31;&#x8FD9;&#x4E48;&#x7B80;&#x5355;&#x505A;&#x4E00;&#x70B9;&#x70B9;&#x4FEE;&#x6539;&#xFF0C;&#x5B83;&#x5B9A;&#x4E49;&#x4E86;&#x4E00;&#x4E9B;&#x5173;&#x4E8E;&#x5217;&#x8868;&#x7684;&#x7C7B;&#x7ED9;&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x3002;</p>
<h5 id="241-&#x53BB;&#x70B9;&#x5217;&#x8868;list-unstyled">2.4.1 &#x53BB;&#x70B9;&#x5217;&#x8868;<code>.list-unstyled</code></h5>
<pre><code class="lang-css"><span class="hljs-selector-tag">list-unstyled</span> {
    <span class="hljs-attribute">padding-left</span>: <span class="hljs-number">0</span>;
    <span class="hljs-attribute">list-style</span>: none;
}
</code></pre>
<p>&#x4ECE;&#x6E90;&#x7801;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x8FD9;&#x6837;&#x7684;&#x4FE1;&#x606F;&#xFF0C;&#x5B83;&#x9664;&#x4E86;&#x5C06;&#x9879;&#x76EE;&#x7F16;&#x53F7;&#x53BB;&#x9664;&#x4E4B;&#x5916;&#xFF0C;&#x8FD8;&#x5C06;&#x9ED8;&#x8BA4;&#x7684;&#x5DE6;&#x8FB9;&#x8DDD;&#x4E5F;&#x6E05;&#x9664;&#x6389;&#x4E86;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">ol</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">li</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-unstyled&quot;</span>&gt;</span>
    &#x9879;&#x76EE;&#x5217;&#x8868;
        <span class="hljs-tag">&lt;<span class="hljs-name">ul</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-unstyled&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>&#x5E26;&#x6709;&#x9879;&#x76EE;&#x7F16;&#x53F7;<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">li</span>&gt;</span>&#x5E26;&#x6709;&#x9879;&#x76EE;&#x7F16;&#x53F7;<span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">ul</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">li</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">ol</span>&gt;</span>
</code></pre>
<p>&#x5728;&#x8FD9;&#x6837;&#x4E00;&#x6BB5;&#x4EE3;&#x7801;&#x4E2D;&#xFF0C;&#x4E09;&#x4E2A;&#x5217;&#x8868;&#x9879;&#x4F1A;&#x6574;&#x9F50;&#x7684;<strong>&#x6392;&#x5217;&#x5728;&#x4E00;&#x8D77;</strong>&#xFF0C;&#x4E14;<strong>&#x90FD;&#x6CA1;&#x6709;&#x9879;&#x76EE;&#x7B26;&#x53F7;</strong>&#x3002;</p>
<h5 id="242-&#x5185;&#x8054;&#x5217;&#x8868;list-inline">2.4.2 &#x5185;&#x8054;&#x5217;&#x8868;<code>.list-inline</code></h5>
<p><strong>&#x628A;&#x5782;&#x76F4;&#x5217;&#x8868;&#x6362;&#x6210;&#x6C34;&#x5E73;&#x5217;&#x8868;&#xFF0C;&#x800C;&#x4E14;&#x53BB;&#x6389;&#x9879;&#x76EE;&#x7B26;&#x53F7;&#xFF08;&#x7F16;&#x53F7;&#xFF09;&#xFF0C;&#x4FDD;&#x6301;&#x6C34;&#x5E73;&#x663E;&#x793A;</strong>&#x3002;&#x5185;&#x8054;&#x5217;&#x8868;&#x5C31;&#x662F;&#x4E3A;&#x5236;&#x4F5C;&#x6C34;&#x5E73;&#x5BFC;&#x822A;&#x800C;&#x751F;&#x3002;</p>
<blockquote>
<p>&#x5C0F;&#x4EFB;&#x52A1;&#xFF1A;&#x81EA;&#x5DF1;&#x5728;codepen&#x4E0A;&#x9762;&#x8BD5;&#x4E00;&#x8BD5;</p>
<h5 id="243-&#x6C34;&#x5E73;&#x5B9A;&#x4E49;&#x5217;&#x8868;dl-horizontal">2.4.3 &#x6C34;&#x5E73;&#x5B9A;&#x4E49;&#x5217;&#x8868;<code>.dl-horizontal</code></h5>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">dl</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;dl-horizontal&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">dt</span>&gt;</span>&#x6807;&#x9898;&#x4E00;&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-name">dt</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">dd</span>&gt;</span>&#x63CF;&#x8FF0;&#x5185;&#x5BB9;&#xFF0C;&#x6211;&#x5F88;&#x559C;&#x6B22;&#x524D;&#x7AEF;&#xFF0C;&#x4E5F;&#x5F88;&#x559C;&#x6B22;&#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;&#xFF0C;&#x5B83;&#x80FD;&#x5728;&#x4E2A;&#x4E0D;&#x540C;&#x5927;&#x5C0F;&#x7684;&#x5C4F;&#x5E55;&#x4E0B;&#x63D0;&#x4F9B;&#x5F88;&#x597D;&#x7684;&#x4F53;&#x9A8C;&#xFF0C;&#x6211;&#x73B0;&#x5728;&#x662F;&#x521D;&#x5B66;&#x8005;&#xFF0C;&#x4F46;&#x662F;&#x6211;&#x4F1A;&#x8D8A;&#x6765;&#x5F3A;&#x7684;<span class="hljs-tag">&lt;/<span class="hljs-name">dd</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">dt</span>&gt;</span>&#x6807;&#x9898;&#x4E8C;&#xFF1A;&#x6807;&#x9898;&#x4E8C;&#xFF1A;&#x6807;&#x9898;&#x4E8C;&#xFF1A;&#x6807;&#x9898;&#x4E8C;&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-name">dt</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">dd</span>&gt;</span>&#x63CF;&#x8FF0;&#x5185;&#x5BB9;<span class="hljs-tag">&lt;/<span class="hljs-name">dd</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">dl</span>&gt;</span>
</code></pre>
<p><strong>&#x6D4F;&#x89C8;&#x5668;&#x5168;&#x5C4F;</strong> &#x548C; <strong>&#x5C4F;&#x5E55;&#x53D8;&#x5C0F;</strong> &#x663E;&#x793A;&#x6548;&#x679C;&#x4E0D;&#x540C;&#xFF0C;&#x5728;&#x9047;&#x5230;&#x4E00;&#x4E2A;&#x4E34;&#x754C;&#x503C;&#x65F6;&#xFF08;&#x5C0F;&#x5C4F;&#xFF09;&#xFF0C;&#x6C34;&#x5E73;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x5C06;&#x56DE;&#x590D;&#x5230;&#x539F;&#x59CB;&#x7684;&#x72B6;&#x6001;&#x3002;</p>
<p>&#x8FD9;&#x662F;&#x4E3A;&#x4EC0;&#x4E48;&#x5462;&#xFF1F;&#x6211;&#x4EEC;&#x53BB;&#x770B;&#x770B;&#x6E90;&#x7801;&#x5427;&#xFF01;
&#x539F;&#x6765;&#x5728;&#x8FD9;&#x91CC;&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E2A;<strong>&#x5A92;&#x4F53;&#x67E5;&#x8BE2;</strong>&#xFF0C;&#x53EA;&#x6709;&#x5C4F;&#x5E55;&#x5927;&#x4E8E;768px&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x6DFB;&#x52A0;&#x7C7B;&#x540D;<code>.dl-horizontal</code>&#x624D;&#x5177;&#x6709;&#x6C34;&#x5E73;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x6548;&#x679C;&#x3002;&#x5176;&#x5B9E;&#x73B0;&#x4E3B;&#x8981;&#x65B9;&#x5F0F;&#xFF1A;</p>
<ol>
<li>&#x5C06;dt&#x8BBE;&#x7F6E;&#x4E86;&#x4E00;&#x4E2A;&#x5DE6;&#x6D6E;&#x52A8;&#xFF0C;&#x5E76;&#x4E14;&#x8BBE;&#x7F6E;&#x4E86;&#x4E00;&#x4E2A;&#x5BBD;&#x5EA6;&#x4E3A;160px</li>
<li>&#x5C06;dd&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;margin-left&#x7684;&#x503C;&#x4E3A;180px&#xFF0C;&#x8FBE;&#x5230;&#x6C34;&#x5E73;&#x7684;&#x6548;&#x679C;</li>
<li>&#x5F53;&#x6807;&#x9898;&#x5BBD;&#x5EA6;&#x8D85;&#x8FC7;160px&#x65F6;&#xFF0C;&#x5C06;&#x4F1A;&#x663E;&#x793A;&#x4E09;&#x4E2A;&#x7701;&#x7565;&#x53F7;</li>
</ol>
<h3 id="25-&#x4EE3;&#x7801;-code">2.5 &#x4EE3;&#x7801; Code</h3>
<p>&#x5728;Bootstrap&#x4E3B;&#x8981;&#x63D0;&#x4F9B;&#x4E86;&#x4E09;&#x79CD;&#x4EE3;&#x7801;&#x98CE;&#x683C;&#xFF1A;</p>
<ol>
<li>&#x4F7F;&#x7528;<code>&lt;code&gt;&lt;/code&gt;</code>&#x6765;&#x663E;&#x793A;&#x5355;&#x884C;&#x5185;&#x8054;&#x4EE3;&#x7801;&#x2014;&#x2014;&#x9488;&#x5BF9;&#x4E8E;&#x5355;&#x4E2A;&#x5355;&#x8BCD;&#x6216;&#x5355;&#x4E2A;&#x53E5;&#x5B50;&#x7684;&#x4EE3;&#x7801;</li>
<li>&#x4F7F;&#x7528;<code>&lt;pre&gt;&lt;/pre&gt;</code>&#x6765;&#x663E;&#x793A;&#x591A;&#x884C;&#x5757;&#x4EE3;&#x7801;&#x2014;&#x2014;&#x9488;&#x5BF9;&#x4E8E;&#x591A;&#x884C;&#x4EE3;&#x7801;&#xFF08;&#x4E5F;&#x5C31;&#x662F;&#x6210;&#x5757;&#x7684;&#x4EE3;&#x7801;&#xFF09;</li>
<li>&#x4F7F;&#x7528;<code>&lt;kbd&gt;&lt;/kbd&gt;</code>&#x6765;&#x663E;&#x793A;&#x7528;&#x6237;&#x8F93;&#x5165;&#x4EE3;&#x7801;&#x2014;&#x2014;&#x8868;&#x793A;&#x7528;&#x6237;&#x8981;&#x901A;&#x8FC7;&#x952E;&#x76D8;&#x8F93;&#x5165;&#x7684;&#x5185;&#x5BB9;</li>
</ol>
<blockquote>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;&#x4E0D;&#x7BA1;&#x4F7F;&#x7528;&#x54EA;&#x79CD;&#x4EE3;&#x7801;&#x98CE;&#x683C;&#xFF0C;&#x5728;&#x4EE3;&#x7801;&#x4E2D;&#x78B0;&#x5230;&#x5C0F;&#x4E8E;&#x53F7;&#xFF08;&lt;&#xFF09;&#x548C;&#x5927;&#x4E8E;&#x53F7;&#xFF08;&gt;&#xFF09;&#x90FD;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x8F6C;&#x4E49;&#x5B57;&#x7B26;&#x6765;&#x66FF;&#x4EE3;</p>
</blockquote>
<pre><code class="lang-html">code&#x98CE;&#x683C;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>Bootstrap&#x7684;&#x4EE3;&#x7801;&#x98CE;&#x683C;&#x6709;&#x4E09;&#x79CD;&#xFF1A;<span class="hljs-tag">&lt;<span class="hljs-name">code</span>&gt;</span>&amp;lt;code&amp;gt;<span class="hljs-tag">&lt;/<span class="hljs-name">code</span>&gt;</span>&#x3001;<span class="hljs-tag">&lt;<span class="hljs-name">code</span>&gt;</span>&amp;lt;pre&amp;gt;<span class="hljs-tag">&lt;/<span class="hljs-name">code</span>&gt;</span>&#x548C;<span class="hljs-tag">&lt;<span class="hljs-name">code</span>&gt;</span>&amp;lt;kbd&amp;gt;<span class="hljs-tag">&lt;/<span class="hljs-name">code</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
pre&#x98CE;&#x683C;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">pre</span>&gt;</span>
&amp;lt;ul&amp;gt;
    &amp;lt;li&amp;gt;...&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
<span class="hljs-tag">&lt;/<span class="hljs-name">pre</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
kbd&#x98CE;&#x683C;&#xFF1A;
<span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>&#x8BF7;&#x8F93;&#x5165;<span class="hljs-tag">&lt;<span class="hljs-name">kbd</span>&gt;</span>ctrl+c<span class="hljs-tag">&lt;/<span class="hljs-name">kbd</span>&gt;</span>&#x6765;&#x590D;&#x5236;&#x4EE3;&#x7801;&#xFF0C;&#x7136;&#x540E;&#x4F7F;&#x7528;<span class="hljs-tag">&lt;<span class="hljs-name">kbd</span>&gt;</span>ctrl+v<span class="hljs-tag">&lt;/<span class="hljs-name">kbd</span>&gt;</span>&#x6765;&#x7C98;&#x8D34;&#x4EE3;&#x7801;<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<blockquote>
<p>&#x5C0F;&#x4EFB;&#x52A1;&#xFF1A;&#x81EA;&#x5DF1;&#x5728;Codepen&#x4E0A;&#x9762;&#x770B;&#x770B;&#x6548;&#x679C;</p>
</blockquote>
<h3 id="3-&#x8868;&#x683C;-table">3. &#x8868;&#x683C; Table</h3>
<p>Bootstrap&#x4E3A;&#x8868;&#x683C;&#x63D0;&#x4F9B;&#x4E86;<strong>1&#x79CD;&#x57FA;&#x7840;&#x6837;&#x5F0F;</strong>&#x548C;4<strong>&#x79CD;&#x9644;&#x52A0;&#x6837;&#x5F0F;</strong>&#x4EE5;&#x53CA;<strong>1&#x4E2A;&#x652F;&#x6301;&#x54CD;&#x5E94;&#x5F0F;&#x7684;&#x8868;&#x683C;</strong>&#x3002;</p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x7C7B;&#x540D;</th>
<th style="text-align:center">&#x8868;&#x683C;&#x6837;&#x5F0F;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center"><code>.table</code></td>
<td style="text-align:center">&#x57FA;&#x7840;&#x8868;&#x683C;</td>
</tr>
<tr>
<td style="text-align:center"><code>.table-striped</code></td>
<td style="text-align:center">&#x6591;&#x9A6C;&#x7EBF;&#x8868;&#x683C;</td>
</tr>
<tr>
<td style="text-align:center"><code>.table-bordered</code></td>
<td style="text-align:center">&#x5E26;&#x8FB9;&#x6846;&#x7684;&#x8868;&#x683C;</td>
</tr>
<tr>
<td style="text-align:center"><code>.table-hover</code></td>
<td style="text-align:center">&#x9F20;&#x6807;&#x60AC;&#x505C;&#x9AD8;&#x4EAE;&#x7684;&#x8868;&#x683C;</td>
</tr>
<tr>
<td style="text-align:center"><code>.table-condensed</code></td>
<td style="text-align:center">&#x7D27;&#x51D1;&#x578B;&#x8868;&#x683C;</td>
</tr>
<tr>
<td style="text-align:center"><code>.table-responsive</code></td>
<td style="text-align:center">&#x54CD;&#x5E94;&#x5F0F;&#x8868;&#x683C;</td>
</tr>
</tbody>
</table>
<p>&#x4E0B;&#x9762;&#x8BF4;&#x4E00;&#x4E9B;&#x6CE8;&#x610F;&#x4E8B;&#x9879;&#xFF1A;</p>
<ol>
<li>&#x540E;&#x51E0;&#x79CD;&#x8868;&#x683C;&#x9644;&#x52A0;&#x6837;&#x5F0F;&#xFF0C;&#x5FC5;&#x987B;&#x5728;&#x57FA;&#x7840;&#x6837;&#x5F0F;<strong>.tabl</strong>e&#x4E4B;&#x540E;&#xFF0C;&#x4F8B;&#x5982;<strong><table class="table table-bordered table-hover"></table></strong></li>
<li>&#x54CD;&#x5E94;&#x5F0F;&#x8868;&#x683C;&#xFF1A;&#x5176;&#x539F;&#x7406;&#x662F;&#x5728;&#x8868;&#x683C;&#x5916;&#x90E8;&#x6DFB;&#x52A0;&#x5BB9;&#x5668;&#x628A;&#x666E;&#x901A;&#x8868;&#x683C;&#x5305;&#x88F9;&#x8D77;&#x6765;&#xFF0C;&#x4E0B;&#x9762;&#x8FDB;&#x884C;&#x8BE6;&#x7EC6;&#x8BF4;&#x660E;&#xFF1A;</li>
</ol>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;table-responsive&quot;</span>&gt;</span><span class="hljs-comment">&lt;!-- &#x5173;&#x952E;&#xFF01;&#x5BB9;&#x5668;&#x5305;&#x88F9;&#x540E;&#x5B9E;&#x73B0;&#x54CD;&#x5E94;&#x5F0F; --&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">table</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;table table-bordered&quot;</span>&gt;</span><span class="hljs-comment">&lt;!-- &#x8BBE;&#x7F6E;&#x8868;&#x683C;&#x6837;&#x5F0F;&#xFF0C;&#x5E26;&#x8FB9;&#x6846;&#x7684;&#x8868;&#x683C; --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">thead</span>&gt;</span><span class="hljs-comment">&lt;!-- &#x4E00;&#x4E2A;&#x8868;&#x683C;&#x5E94;&#x8BE5;&#x6709;&#x8868;&#x5934;&#xFF0C;&#x82E5;&#x76F4;&#x63A5;&#x5199;tr&gt;td&#x8FD9;&#x6837;&#x7684;&#x7ED3;&#x6784;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x4F1A;&#x81EA;&#x52A8;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;tbody&#x5305;&#x88F9; --&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">thead</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">tbody</span>&gt;</span><span class="hljs-comment">&lt;!--&#x4E0E;&#x4E0A;&#x540C;&#x7406;&#xFF0C;&#x5373;&#x4F7F;&#x4F60;&#x4E0D;&#x521B;&#x5EFA;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x4E5F;&#x4F1A;&#x81EA;&#x52A8;&#x6DFB;&#x52A0;tbody&#x5305;&#x88F9;&#x4F60;&#x7684;&#x4EE3;&#x7801;  --&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">tbody</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">table</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
<hr>
<h2 id="&#x4E8C;&#x3001;&#x8868;&#x5355;forms">&#x4E8C;&#x3001;&#x8868;&#x5355;Forms</h2>
<blockquote>
<p>&#x5173;&#x4E8E;&#x8868;&#x5355;&#x7684;&#x5E94;&#x7528;&#x81EA;&#x7136;&#x4E0D;&#x9700;&#x8981;&#x591A;&#x8BF4;&#xFF0C;&#x53EA;&#x8981;&#x60A8;&#x7684;&#x7684;&#x7F51;&#x7AD9;&#x53EF;&#x4EE5;&#x7528;&#x6237;&#x767B;&#x5F55;&#xFF0C;&#x90A3;&#x4E48;&#x4E0D;&#x53EF;&#x80FD;&#x4E0D;&#x7528;&#x5230;&#x8868;&#x5355;&#xFF01;&#x8868;&#x5355;&#x4E3B;&#x8981;&#x529F;&#x80FD;&#x662F;&#x7528;&#x6765;&#x4E0E;&#x7528;&#x6237;&#x505A;&#x4EA4;&#x6D41;&#x7684;&#x4E00;&#x4E2A;&#x7F51;&#x9875;&#x63A7;&#x4EF6;&#xFF0C;JavaScript&#x53D1;&#x660E;&#x4E4B;&#x521D;&#x6700;&#x5927;&#x7684;&#x4F5C;&#x7528;&#x4E5F;&#x5C31;&#x662F;&#x7528;&#x6765;&#x8FDB;&#x884C;&#x8868;&#x5355;&#x64CD;&#x4F5C;&#x3002;&#x6240;&#x4EE5;&#x8868;&#x5355;&#x662F;&#x6BCF;&#x4E00;&#x4E2A;&#x524D;&#x7AEF;&#x5F00;&#x53D1;&#x8005;&#x5FC5;&#x987B;&#x8981;&#x719F;&#x7EC3;&#x638C;&#x63E1;&#x7684;&#x4E1C;&#x897F;&#x3002;</p>
</blockquote>
<p>&#x826F;&#x597D;&#x7684;&#x8868;&#x5355;&#x8BBE;&#x8BA1;&#x80FD;&#x591F;&#x8BA9;&#x7F51;&#x9875;&#x4E0E;&#x7528;&#x6237;&#x66F4;&#x597D;&#x7684;&#x6C9F;&#x901A;&#x3002;&#x8868;&#x5355;&#x4E2D;&#x5E38;&#x89C1;&#x7684;&#x5143;&#x7D20;&#x4E3B;&#x8981;&#x5305;&#x62EC;&#xFF1A;<strong>&#x6587;&#x672C;&#x8F93;&#x5165;&#x6846;&#x3001;&#x4E0B;&#x62C9;&#x9009;&#x62E9;&#x6846;&#x3001;&#x5355;&#x9009;&#x6309;&#x94AE;&#x3001;&#x590D;&#x9009;&#x6309;&#x94AE;&#x3001;&#x6587;&#x672C;&#x57DF;&#x548C;&#x6309;&#x94AE;&#x7B49;</strong>&#x3002;&#x5176;&#x4E2D;&#x6BCF;&#x4E2A;&#x63A7;&#x4EF6;&#x6240;&#x8D77;&#x7684;&#x4F5C;&#x7528;&#x90FD;&#x5404;&#x4E0D;&#x76F8;&#x540C;&#xFF0C;&#x800C;&#x4E14;&#x4E0D;&#x540C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x5BF9;&#x8868;&#x5355;&#x63A7;&#x4EF6;&#x6E32;&#x67D3;&#x7684;&#x98CE;&#x683C;&#x90FD;&#x5404;&#x6709;&#x4E0D;&#x540C;&#x3002;&#x4F20;&#x7EDF;&#x7684;HTML&#x8868;&#x5355;&#x5C31;&#x4E0D;&#x5728;&#x8FD9;&#x6837;&#x8FDB;&#x884C;&#x8BB2;&#x89E3;&#x4E86;&#xFF0C;&#x4E0B;&#x9762;&#x5C31;&#x5F00;&#x59CB;Bootstrap&#x8868;&#x5355;&#x7684;&#x5B66;&#x4E60;&#x5427;&#xFF01;</p>
<h3 id="1-&#x57FA;&#x7840;&#x8868;&#x5355;">1. &#x57FA;&#x7840;&#x8868;&#x5355;</h3>
<p>&#x5728;Bootstrap&#x5BF9;&#x4E8E;&#x57FA;&#x7840;&#x8868;&#x5355;&#x6CA1;&#x6709;&#x505A;&#x592A;&#x591A;&#x7684;&#x5B9A;&#x5236;&#x6548;&#x679C;&#xFF0C;&#x4EC5;&#x4EC5;&#x662F;&#x5BF9;&#x4E8E;&#x4E00;&#x4E9B;&#x5143;&#x7D20;&#x7684;<strong>margin&#x3001;padding&#x548C;border</strong>&#x8FDB;&#x884C;&#x4E86;&#x4E00;&#x4E9B;&#x7EC6;&#x5316;&#x8BBE;&#x7F6E;&#x3002;
&#x5F53;&#x7136;&#xFF0C;&#x4E5F;&#x4E0D;&#x4F1A;&#x90A3;&#x4E48;&#x7B80;&#x5355;&#xFF0C;&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#xFF0C;&#x901A;&#x8FC7;&#x5B9A;&#x5236;&#x4E86;&#x4E00;&#x4E2A;&#x7C7B;&#x540D;<code>form-control</code>&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x4F7F;&#x7528;&#x4E86;&#x7C7B;&#x540D;<code>form-control</code>&#xFF0C;&#x5C06;&#x4F1A;&#x5B9E;&#x73B0;&#x4E00;&#x4E9B;&#x8BBE;&#x8BA1;&#x4E0A;&#x7684;&#x5B9A;&#x5236;&#x6548;&#x679C;&#x3002;&#x4ECE;&#x6E90;&#x7801;&#x4E2D;&#xFF08;2356&#x884C;&#xFF0C;&#x55EF;&#xFF0C;&#x5584;&#x7528;&#x641C;&#x7D22;&#xFF09;&#x53EF;&#x4EE5;&#x5F97;&#x51FA;&#x7ED3;&#x8BBA;&#x5982;&#x4E0B;&#xFF1A;</p>
<ol>
<li>&#x5BBD;&#x5EA6;&#x53D8;&#x6210;&#x4E86;100%</li>
<li>&#x8BBE;&#x7F6E;&#x4E86;&#x4E00;&#x4E2A;&#x6D45;&#x7070;&#x8272;&#xFF08;<code>#ccc</code>&#xFF09;&#x7684;&#x8FB9;&#x6846;</li>
<li>&#x5177;&#x6709;4px&#x7684;&#x5706;&#x89D2;</li>
<li>&#x8BBE;&#x7F6E;&#x9634;&#x5F71;&#x6548;&#x679C;&#xFF0C;&#x5E76;&#x4E14;&#x5143;&#x7D20;&#x5F97;&#x5230;&#x7126;&#x70B9;&#x4E4B;&#x65F6;&#xFF0C;&#x9634;&#x5F71;&#x548C;&#x8FB9;&#x6846;&#x6548;&#x679C;&#x4F1A;&#x6709;&#x6240;&#x53D8;&#x5316;</li>
<li>&#x8BBE;&#x7F6E;&#x4E86;placeholder(&#x8F93;&#x5165;&#x6846;&#x7684;&#x63D0;&#x793A;&#x6587;&#x5B57;)&#x7684;&#x989C;&#x8272;&#x4E3A;<code>#999</code>
&#x8FD9;&#x4E2A;&#x7C7B;&#x4E00;&#x822C;&#x7528;&#x4E8E;&#x8F93;&#x5165;&#x6846;&#xFF0C;&#x5BF9;&#x4E8E;&#x5176;&#x4ED6;&#x7684;&#x7C7B;&#x578B;&#x4F7F;&#x7528;&#xFF0C;&#x55EF;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x8BD5;&#x8BD5;&#x81EA;&#x5DF1;&#x5C1D;&#x8BD5;&#x4E00;&#x4E0B;&#x3002;</li>
</ol>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-name">form</span> <span class="hljs-attr">role</span>=<span class="hljs-string">&quot;form&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group&quot;</span>&gt;</span><span class="hljs-comment">&lt;!-- form-group&#x8FD9;&#x4E2A;&#x7C7B;&#x5728;&#x5728;&#x8FD9;&#x91CC;&#x7528;&#x4E8E;&#x63A7;&#x5236;&#x8868;&#x5355;&#x4E4B;&#x95F4;&#x7684;&#x95F4;&#x9694;&#xFF0C;&#x4E4B;&#x540E;&#x4F1A;&#x6709;&#x53E6;&#x5916;&#x4ECB;&#x7ECD; --&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;exampleInputEmail1&quot;</span>&gt;</span>&#x90AE;&#x7BB1;&#xFF1A;<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;email&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-control&quot;</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;exampleInputEmail1&quot;</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">&quot;&#x8BF7;&#x8F93;&#x5165;&#x60A8;&#x7684;&#x90AE;&#x7BB1;&#x5730;&#x5740;&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-group&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">label</span> <span class="hljs-attr">for</span>=<span class="hljs-string">&quot;exampleInputPassword1&quot;</span>&gt;</span>&#x5BC6;&#x7801;<span class="hljs-tag">&lt;/<span class="hljs-name">label</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">input</span> <span class="hljs-attr">type</span>=<span class="hljs-string">&quot;password&quot;</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;form-control&quot;</span> <span class="hljs-attr">id</span>=<span class="hljs-string">&quot;exampleInputPassword1&quot;</span> <span class="hljs-attr">placeholder</span>=<span class="hljs-string">&quot;&#x8BF7;&#x8F93;&#x5165;&#x60A8;&#x7684;&#x90AE;&#x7BB1;&#x5BC6;&#x7801;&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">form</span>&gt;</span>
</code></pre>
<p>&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;
<img src="http://wy.codingirlsclub.com/2016-12-07-form1.jpg" alt=""></p>
<h5 id="&#x5185;&#x8054;&#x8868;&#x5355;">&#x5185;&#x8054;&#x8868;&#x5355;</h5>
<p>&#x8FD8;&#x662F;&#x4E0A;&#x9762;&#x90A3;&#x4E00;&#x6BB5;&#x4EE3;&#x7801;&#xFF1A;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x7ED9;form&#x52A0;&#x4E0A;&#x4E0B;&#x9762;<code>.form-inline</code>&#x8FD9;&#x4E2A;&#x7C7B;&#x5C31;&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x8868;&#x5355;&#x5143;&#x7D20;&#x5728;&#x4E00;&#x884C;&#x6392;&#x5217;&#xFF1A;
<img src="http://wy.codingirlsclub.com/2016-12-07-form3.jpg" alt=""></p>
<h5 id="&#x6C34;&#x5E73;&#x8868;&#x5355;">&#x6C34;&#x5E73;&#x8868;&#x5355;</h5>
<p>Bootstrap&#x6846;&#x67B6;&#x9ED8;&#x8BA4;&#x7684;&#x8868;&#x5355;&#x662F;&#x5782;&#x76F4;&#x663E;&#x793A;&#x98CE;&#x683C;&#xFF0C;&#x9664;&#x4E86;&#x4E0A;&#x9762;&#x7684;&#x5185;&#x8054;&#x8868;&#x8FBE;&#x4E4B;&#x5916;&#xFF0C;&#x5F88;&#x591A;&#x65F6;&#x5019;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x7684;&#x662F;&#x6C34;&#x5E73;&#x8868;&#x5355;&#x98CE;&#x683C;&#x3002;&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x8981;&#x5B9E;&#x73B0;&#x6C34;&#x5E73;&#x8868;&#x5355;&#x6548;&#x679C;&#xFF0C;&#x5FC5;&#x987B;&#x6EE1;&#x8DB3;&#x4EE5;&#x4E0B;&#x4E24;&#x4E2A;&#x6761;&#x4EF6;&#xFF1A;</p>
<ol>
<li>&#x5728;<form>&#x5143;&#x7D20;&#x662F;&#x4F7F;&#x7528;&#x7C7B;&#x540D;.form-horizontal&#xFF0C;&#x4F5C;&#x7528;&#x5982;&#x4E0B;&#xFF1A;<ul>
<li>&#x8BBE;&#x7F6E;&#x8868;&#x5355;&#x63A7;&#x4EF6;padding&#x548C;margin&#x503C;&#x3002;</li>
<li>&#x6539;&#x53D8;&#x201C;form-group&#x201D;&#x7684;&#x8868;&#x73B0;&#x5F62;&#x5F0F;&#xFF0C;&#x7C7B;&#x4F3C;&#x4E8E;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x7684;&#x201C;row&#x201D;&#x3002;</li>
</ul>
</form></li>
<li>&#x914D;&#x5408;Bootstrap&#x6846;&#x67B6;&#x7684;&#x6805;&#x683C;&#x7CFB;&#x7EDF;&#x3002;&#xFF08;&#x6805;&#x683C;&#x5E03;&#x5C40;&#x4F1A;&#x5728;&#x4EE5;&#x540E;&#x7684;&#x7AE0;&#x8282;&#x4E2D;&#x8BE6;&#x7EC6;&#x8BB2;&#x89E3;&#xFF09;<ul>
<li>&#x4F8B;&#x5982;&#xFF1A;&#x4F7F;&#x7528;<div class="col-sm-6"></div>&#x5C06;&#x6211;&#x4EEC;&#x7684;input&#x8FDB;&#x884C;&#x5305;&#x88F9;&#xFF0C;&#x5177;&#x4F53;&#x60C5;&#x51B5;&#x5230;&#x6805;&#x683C;&#x5E03;&#x5C40;&#x7684;&#x65F6;&#x5019;&#x518D;&#x8BF4;
-
&#x53EF;&#x4EE5;&#x5B9E;&#x73B0;&#x4E0B;&#x9762;&#x7684;&#x6548;&#x679C;&#xFF0C;&#xFF08;&#x540C;&#x6837;&#x5904;&#x4E8E;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x4E2D;&#xFF09;
<img src="http://wy.codingirlsclub.com/2016-12-07-form2.jpg" alt=""></li>
</ul>
</li>
</ol>
<h3 id="2-&#x8868;&#x5355;&#x63A7;&#x4EF6;">2. &#x8868;&#x5355;&#x63A7;&#x4EF6;</h3>
<h5 id="&#x8F93;&#x5165;&#x6846;input">&#x8F93;&#x5165;&#x6846;input</h5>
<p>&#x5355;&#x884C;&#x6587;&#x672C;&#x6846;&#x5728;html&#x7F16;&#x5199;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x90FD;&#x9700;&#x8981;<strong>&#x8BBE;&#x7F6E;type&#x5C5E;&#x6027;&#x4E3A;text</strong>&#xFF0C;&#x5728;Bootstrap&#x4E2D;&#x4E5F;&#x5FC5;&#x987B;&#x6B63;&#x786E;&#x7684;&#x6DFB;&#x52A0;type&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x56E0;&#x4E3A;&#x5728;&#x8FD9;&#x91CC;&#x662F;&#x4F7F;&#x7528;CSS&#x7684;&#x5C5E;&#x6027;&#x9009;&#x62E9;&#x5668;&#x5982;&#xFF1A;<code>input[type=&quot;text&quot;]</code>&#x6765;&#x8FDB;&#x884C;&#x6837;&#x5F0F;&#x8BBE;&#x7F6E;&#x7684;&#xFF01;
&#x4E3A;&#x4E86;&#x8BA9;&#x63A7;&#x4EF6;&#x5728;&#x5404;&#x79CD;&#x8868;&#x5355;&#x98CE;&#x683C;&#x4E2D;&#x6837;&#x5F0F;&#x4E0D;&#x51FA;&#x9519;&#xFF0C;&#x9700;&#x8981;&#x6DFB;&#x52A0;&#x7C7B;&#x540D;<code>form-control</code>&#xFF0C;&#x5982;&#xFF1A;<code>&lt;input type=&quot;email&quot; class=&quot;form-control&quot; placeholder=&quot;&#x8BF7;&#x8F93;&#x5165;&#x60A8;&#x7684;&#x90AE;&#x7BB1;&quot;&gt;</code></p>
<blockquote>
<p>&#x4EFB;&#x52A1;&#xFF1A;&#x81EA;&#x884C;&#x9605;&#x8BFB;Bootstrap&#x6587;&#x6863;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;</p>
<ul>
<li>&#x4E0B;&#x62C9;&#x9009;&#x62E9;&#x6846;select</li>
<li>&#x6587;&#x672C;&#x57DF;textarea</li>
<li>&#x590D;&#x9009;&#x6846;checkbox&#x548C;&#x5355;&#x9009;&#x6309;&#x94AE;radio</li>
<li>&#x8868;&#x5355;&#x63A7;&#x4EF6;&#x5927;&#x5C0F;</li>
<li>&#x8868;&#x5355;&#x63A7;&#x4EF6;&#x72B6;&#x6001;</li>
<li>&#x9A8C;&#x8BC1;&#x72B6;&#x6001;</li>
<li>&#x8868;&#x5355;&#x63D0;&#x793A;&#x4FE1;&#x606F;</li>
</ul>
</blockquote>
<h3 id="3-&#x6309;&#x94AE;-buttons">3. &#x6309;&#x94AE; Buttons</h3>
<p>&#x6211;&#x4EEC;&#x521B;&#x5EFA;&#x7684;&#x6309;&#x94AE;&#x901A;&#x5E38;&#x901A;&#x8FC7;&#x4E0B;&#x9762;&#x8FD9;&#x51E0;&#x79CD;&#x5F62;&#x5F0F;&#xFF1A;:</p>
<ul>
<li><code>input[type=&quot;submit&quot;]</code>&#xFF1A;&#x63D0;&#x4EA4;&#x6309;&#x94AE;</li>
<li><code>input[type=&quot;button&quot;]</code>&#xFF1A;&#x666E;&#x901A;&#x6309;&#x94AE;</li>
<li><code>input[type=&quot;reset&quot;]</code>&#xFF1A;&#x91CD;&#x7F6E;&#x6309;&#x94AE;</li>
<li><code>&lt;button&gt;&lt;/button&gt;</code>&#xFF1A;&#x6309;&#x94AE;&#x5143;&#x7D20;&#xFF0C;&#xFF08;&#x9ED8;&#x8BA4;&#x884C;&#x4E3A;&#x662F;&#x63D0;&#x4EA4;&#xFF09;</li>
</ul>
<p><strong>&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x7684;&#x6309;&#x94AE;&#x90FD;&#x662F;&#x91C7;&#x7528;<code>&lt;button&gt;</code>&#x6765;&#x5B9E;&#x73B0;&#x3002;</strong></p>
<h3 id="1-&#x60C5;&#x666F;&#x6309;&#x94AE;">1. &#x60C5;&#x666F;&#x6309;&#x94AE;</h3>
<p>&#x4E5F;&#x6B63;&#x5982;&#x6211;&#x4EEC;&#x524D;&#x9762;&#x6240;&#x8BF4;&#xFF0C;Bootstrop&#x5BF9;&#x4E8E;&#x6309;&#x94AE;&#x4E5F;&#x505A;&#x4E86;&#x4E0D;&#x540C;&#x60C5;&#x666F;&#x4E0B;&#x7684;&#x7C7B;&#xFF0C;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x989C;&#x8272;&#x5C55;&#x793A;&#x5F88;&#x597D;&#x7684;&#x63CF;&#x8FF0;&#x4E86;&#x5F53;&#x524D;&#x7684;&#x72B6;&#x6001;&#x3002;
<img src="http://wy.codingirlsclub.com/2016-12-07-form-btn1-1.jpg" alt="">
<img src="http://wy.codingirlsclub.com/2016-12-07-form-btn2.png" alt=""></p>
<blockquote>
<p>&#x8BB0;&#x4F4F;&#x4E00;&#x70B9;&#xFF01;Bootstrap&#x4E2D;&#x7684;&#x6309;&#x94AE;&#xFF0C;<strong>&#x7B2C;&#x4E00;&#x524D;&#x63D0;&#x662F;&#x5FC5;&#x987B;&#x6DFB;&#x52A0;b<code>tn</code>&#x8FD9;&#x4E2A;&#x7C7B;</strong>&#xFF0C;&#x5176;&#x4ED6;&#x7684;&#x5404;&#x79CD;&#x7C7B;&#xFF0C;&#x90FD;&#x53EA;&#x80FD;&#x6DFB;&#x52A0;&#x5230;&#x5176;&#x540E;&#x3002;&#x6240;&#x4EE5;&#x4E00;&#x4E2A;&#x6309;&#x94AE;&#x5E94;&#x8BE5;&#x662F;&#x8FD9;&#x4E2A;&#x6837;&#x5B50;&#x7684;&#xFF1A;<code>&lt;button class=&quot;btn btn-info&quot; &gt;&#x4FE1;&#x606F;&#x6309;&#x94AE;&lt;/button&gt;</code>&#xFF0C;&#x82E5;&#x8FD8;&#x6709;&#x5176;&#x4ED6;&#x7684;&#x6837;&#x5F0F;&#xFF0C;&#x5F80;<code>btn-info</code>&#x540E;&#x6DFB;&#x52A0;&#xFF0C;&#x5145;&#x5206;&#x5229;&#x7528;css&#x7684;&#x5C42;&#x53E0;&#x7279;&#x6027;&#x3002;</p>
</blockquote>
<h3 id="2-&#x6309;&#x94AE;&#x5927;&#x5C0F;">2. &#x6309;&#x94AE;&#x5927;&#x5C0F;</h3>
<p>Bootstrap&#x6709;&#x7740;&#x5F88;&#x5BF9;&#x76F8;&#x4F3C;&#x7684;&#x7C7B;&#xFF08;&#x5B66;&#x4E60;&#x5B8C;&#x540E;&#x603B;&#x7ED3;&#x4E00;&#x4E0B;&#x5427;&#x989C;&#x8272;&#xFF0C;&#x5927;&#x5C0F;&#x7B49;&#x7B49;&#xFF09;&#xFF0C;&#x6BD4;&#x5982;&#x73B0;&#x5728;&#x8981;&#x8BF4;&#x7684;&#xFF0C;&#x6539;&#x53D8;&#x6309;&#x94AE;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x5F53;&#x7136;&#x4F60;&#x53EF;&#x4EE5;&#x81EA;&#x5B9A;&#x4E49;&#xFF0C;&#x4F46;&#x662F;Bootstrap&#x9ED8;&#x8BA4;&#x4E3A;&#x6211;&#x4EEC;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E9B;&#xFF0C;&#x6DFB;&#x52A0;&#x5230;btn&#x7C7B;&#x540E;&#x5C31;&#x884C;&#xFF01;
<img src="http://wy.codingirlsclub.com/2016-12-07-form-btn-size.png" alt=""></p>
<h3 id="3-&#x5757;&#x72B6;&#x6309;&#x94AE;">3. &#x5757;&#x72B6;&#x6309;&#x94AE;</h3>
<p>Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x4E2A;&#x7C7B;&#x540D;btn-block&#x3002;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x7C7B;&#x540D;&#x5C31;&#x53EF;&#x4EE5;&#x8BA9;&#x6309;&#x94AE;&#x5145;&#x6EE1;&#x6574;&#x4E2A;&#x5BB9;&#x5668;&#xFF0C;&#x5E76;&#x4E14;&#x8FD9;&#x4E2A;&#x6309;&#x94AE;&#x4E0D;&#x4F1A;&#x6709;&#x4EFB;&#x4F55;&#x7684;padding&#x548C;margin&#x503C;&#x3002;&#x5728;&#x5B9E;&#x9645;&#x5F53;&#x4E2D;&#xFF0C;&#x5E38;&#x628A;&#x8FD9;&#x79CD;&#x6309;&#x94AE;&#x79F0;&#x4E3A;&#x5757;&#x72B6;&#x6309;&#x94AE;&#x3002;&#x540C;&#x6837;&#x6DFB;&#x52A0;&#x5230;btn&#x7C7B;&#x540E;&#x5373;&#x53EF;&#x751F;&#x6548;</p>
<h3 id="4-&#x6D3B;&#x52A8;&#x4E0E;&#x7981;&#x7528;&#x72B6;&#x6001;">4. &#x6D3B;&#x52A8;&#x4E0E;&#x7981;&#x7528;&#x72B6;&#x6001;</h3>
<p>Bootstrap&#x6846;&#x67B6;&#x9488;&#x5BF9;&#x6309;&#x94AE;&#x7684;&#x72B6;&#x6001;&#x505A;&#x4E86;&#x4E00;&#x4E9B;&#x7279;&#x6B8A;&#x5904;&#x7406;&#x3002;&#x4E3B;&#x8981;&#x5206;&#x4E3A;&#x4E24;&#x79CD;&#xFF1A;&#x6D3B;&#x52A8;&#x72B6;&#x6001;&#x548C;&#x7981;&#x7528;&#x72B6;&#x6001;&#x3002;</p>
<h5 id="&#x6D3B;&#x52A8;&#x72B6;&#x6001;">&#x6D3B;&#x52A8;&#x72B6;&#x6001;</h5>
<p>Bootstrap&#x6309;&#x94AE;&#x7684;&#x6D3B;&#x52A8;&#x72B6;&#x6001;&#x4E3B;&#x8981;&#x5305;&#x62EC;&#x6309;&#x94AE;&#x7684;&#x60AC;&#x6D6E;&#x72B6;&#x6001;(<code>:hover</code>)&#xFF0C;&#x70B9;&#x51FB;&#x72B6;&#x6001;(<code>:active</code>)&#x548C;&#x7126;&#x70B9;&#x72B6;&#x6001;&#xFF08;<code>:focus</code>&#xFF09;&#x51E0;&#x79CD;&#x3002;</p>
<p>&#x901A;&#x8FC7;&#x5728;&#x6E90;&#x7801;&#x4E2D;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#xFF0C;Bootstrap&#x5BF9;&#x4E8E;&#x6BCF;&#x4E00;&#x79CD;&#x98CE;&#x683C;&#x7684;&#x6309;&#x94AE;&#x90FD;&#x505A;&#x4E86;&#x5355;&#x72EC;&#x7684;&#x5B9A;&#x5236;&#x3002;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#x7684;&#x8BDD;&#x53EF;&#x4EE5;&#x53C2;&#x8003;&#x6E90;&#x7801;&#xFF01;</p>
<h5 id="&#x7981;&#x7528;&#x72B6;&#x6001;">&#x7981;&#x7528;&#x72B6;&#x6001;</h5>
<p>&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#xFF0C;&#x8981;&#x7981;&#x7528;&#x6309;&#x94AE;&#x6709;&#x4E24;&#x79CD;&#x5B9E;&#x73B0;&#x65B9;&#x5F0F;&#xFF1A;</p>
<ul>
<li>&#x5728;&#x6807;&#x7B7E;&#x4E2D;&#x6DFB;&#x52A0;disabled&#x5C5E;&#x6027;</li>
<li>&#x5728;&#x5143;&#x7D20;&#x6807;&#x7B7E;&#x4E2D;&#x6DFB;&#x52A0;&#x7C7B;&#x540D;<code>.disabled</code></li>
</ul>
<hr>
<h2 id="&#x4E09;&#x3001;-&#x56FE;&#x7247;-images">&#x4E09;&#x3001; &#x56FE;&#x7247; Images</h2>
<p>&#x5728;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x5BF9;&#x4E8E;&#x56FE;&#x50CF;&#x7684;&#x6837;&#x5F0F;&#x98CE;&#x683C;&#x63D0;&#x4F9B;&#x4EE5;&#x4E0B;&#x51E0;&#x79CD;&#x98CE;&#x683C;&#xFF1A;</p>
<ul>
<li><code>.img-responsive</code>&#xFF1A;&#x54CD;&#x5E94;&#x5F0F;&#x56FE;&#x7247;&#xFF0C;&#x4E3B;&#x8981;&#x9488;&#x5BF9;&#x4E8E;&#x54CD;&#x5E94;&#x5F0F;&#x8BBE;&#x8BA1;</li>
<li><code>.img-rounded</code>&#xFF1A;&#x5706;&#x89D2;&#x56FE;&#x7247;</li>
<li><code>.img-circle</code>&#xFF1A;&#x5706;&#x5F62;&#x56FE;&#x7247;</li>
<li><code>.img-thumbnail</code>&#xFF1A;&#x7F29;&#x7565;&#x56FE;&#x7247;&#xFF0C;&#x76F8;&#x6846;&#x6548;&#x679C;</li>
</ul>
<p>&#x76F4;&#x63A5;&#x628A;&#x7C7B;&#x540D;&#x6DFB;&#x52A0;&#x5230;img&#x6807;&#x7B7E;&#x4E0A;&#x5C31;&#x884C;&#x4E86;&#xFF01;</p>
<blockquote>
<p>&#x6CE8;&#x610F;&#xFF1A;
&#x8BBE;&#x7F6E;&#x56FE;&#x7247;&#x5927;&#x5C0F;&#x65F6;&#xFF0C;&#x7531;&#x4E8E;&#x6837;&#x5F0F;&#x6CA1;&#x6709;&#x5BF9;&#x56FE;&#x7247;&#x505A;&#x5927;&#x5C0F;&#x4E0A;&#x7684;&#x6837;&#x5F0F;&#x9650;&#x5236;&#xFF0C;&#x6240;&#x4EE5;&#x5728;&#x5B9E;&#x9645;&#x4F7F;&#x7528;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x9700;&#x8981;&#x901A;&#x8FC7;&#x5176;&#x4ED6;&#x7684;&#x65B9;&#x5F0F;&#x6765;&#x5904;&#x7406;&#x56FE;&#x7247;&#x5927;&#x5C0F;&#x3002;&#x6BD4;&#x5982;&#x8BF4;&#x63A7;&#x5236;&#x56FE;&#x7247;&#x5BB9;&#x5668;&#x5927;&#x5C0F;&#x3002;&#xFF08;&#x6CE8;&#x610F;&#x4E0D;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;css&#x6837;&#x5F0F;&#x76F4;&#x63A5;&#x4FEE;&#x6539;img&#x56FE;&#x7247;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x8FD9;&#x6837;&#x64CD;&#x4F5C;&#x5C31;&#x4E0D;&#x54CD;&#x5E94;&#x4E86;&#xFF09;</p>
</blockquote>
<h3 id="&#x56FE;&#x6807;-icons-by-glyphicons">&#x56FE;&#x6807; Icons by Glyphicons</h3>
<p>&#x8FD9;&#x91CC;&#x8BF4;&#x7684;&#x56FE;&#x6807;&#x5C31;&#x662F;Web&#x5236;&#x4F5C;&#x4E2D;&#x5E38;&#x770B;&#x5230;&#x7684;&#x5C0F;icon&#x56FE;&#x6807;&#xFF0C;&#x5305;&#x62EC;250&#x591A;&#x4E2A;&#x6765;&#x81EA; Glyphicon Halflings &#x7684;&#x5B57;&#x4F53;&#x56FE;&#x6807;&#xFF0C;Bootstrap&#x6846;&#x67B6;&#x4E2D;&#x56FE;&#x6807;&#x90FD;&#x662F;glyphicons.com&#x8FD9;&#x4E2A;&#x5546;&#x4E1A;&#x7F51;&#x7AD9;&#x63D0;&#x4F9B;&#x7684;&#xFF0C;&#x5E76;&#x4E14;&#x514D;&#x8D39;&#x6388;&#x6743;&#x7ED9;Bootstrap&#x6846;&#x67B6;&#x4F7F;&#x7528;&#x3002;</p>
<p>&#x4E0D;&#x8FC7;&#xFF0C;&#x5927;&#x5BB6;&#x666E;&#x904D;&#x66F4;&#x613F;&#x610F;&#x4F7F;&#x7528;<a href="http://fontawesome.io/" target="_blank">Font Awesome</a>&#xFF0C;&#x4F7F;&#x7528;&#x65B9;&#x6CD5;&#x975E;&#x5E38;&#x7B80;&#x5355;&#xFF1A;</p>
<ol>
<li>&#x5728;&#x9875;&#x9762;&#x9876;&#x90E8;&#x6DFB;&#x52A0;  <code>&lt;link rel=&quot;stylesheet&quot; href=&quot;//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css&quot;/&gt;</code></li>
<li>&#x6DFB;&#x52A0; <code>.fa .icon_name</code> &#x5230; <code>&lt;i&gt;</code>&#x6807;&#x7B7E;&#x3002; &#x8FD9;&#x91CC;&#x7684;icon_name &#x5230;Font Awesome&#x7F51;&#x7AD9;&#x67E5;&#x8BE2;&#xFF1A;<a href="http://fontawesome.io/icons/" target="_blank">http://fontawesome.io/icons/</a>
&#x5982;&#x4E0B;&#x5217;&#x4EE3;&#x7801;&#xFF1A;<pre><code class="lang-html"> <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group&quot;</span>&gt;</span>
   <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;fa fa-home fa-fw&quot;</span> <span class="hljs-attr">aria-hidden</span>=<span class="hljs-string">&quot;true&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span>&amp;nbsp; Home<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
   <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;fa fa-book fa-fw&quot;</span> <span class="hljs-attr">aria-hidden</span>=<span class="hljs-string">&quot;true&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span>&amp;nbsp; Library<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
   <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;fa fa-pencil fa-fw&quot;</span> <span class="hljs-attr">aria-hidden</span>=<span class="hljs-string">&quot;true&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span>&amp;nbsp; Applications<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
   <span class="hljs-tag">&lt;<span class="hljs-name">a</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;list-group-item&quot;</span> <span class="hljs-attr">href</span>=<span class="hljs-string">&quot;#&quot;</span>&gt;</span><span class="hljs-tag">&lt;<span class="hljs-name">i</span> <span class="hljs-attr">class</span>=<span class="hljs-string">&quot;fa fa-cog fa-fw&quot;</span> <span class="hljs-attr">aria-hidden</span>=<span class="hljs-string">&quot;true&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">i</span>&gt;</span>&amp;nbsp; Settings<span class="hljs-tag">&lt;/<span class="hljs-name">a</span>&gt;</span>
 <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
</code></pre>
</li>
</ol>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="1-Grid.html" class="navigation navigation-prev " aria-label="Previous page: 4.1 布局">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="3-Components.html" class="navigation navigation-next " aria-label="Next page: 4.3 组件">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"4.2 基础Bootstrap CSS","level":"1.5.2","depth":2,"next":{"title":"4.3 组件","level":"1.5.3","depth":2,"path":"Bootstrap/3-Components.md","ref":"Bootstrap/3-Components.md","articles":[]},"previous":{"title":"4.1 布局","level":"1.5.1","depth":2,"path":"Bootstrap/1-Grid.md","ref":"Bootstrap/1-Grid.md","articles":[]},"dir":"ltr"},"config":{"plugins":["downloadpdf","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"disqus":{"shortName":"girlscodingday"},"livereload":{},"search":{},"downloadpdf":{"label":"Download PDF","multilingual":false,"base":"http://pan.baidu.com/s/1i5L60df"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"sharing":{"qq":true,"all":["weibo","instapaper","linkedin","pocket","instapaper"],"douban":true,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"twitter":false,"messenger":false,"vk":false,"pocket":true,"google":false,"qzone":true,"linkedin":true},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Yang Wen <wenyang@codingirls.club>","pdf":{"pageBreaksBefore":"/","headerTemplate":null,"paperSize":"a4","margin":{"right":62,"left":62,"top":36,"bottom":36},"fontSize":12,"fontFamily":"Arial","footerTemplate":null,"chapterMark":"pagebreak","pageNumbers":false},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Girls Coding Day Tutorial","links":{"sharing":{"all":null,"facebook":null,"google":null,"twitter":null,"weibo":"http://weibo.com/codingirlsclub","douban":"https://www.douban.com/people/codingirlsclub/"},"sidebar":{"Girls Coding Day":"https://girlscodingday.org/"}},"gitbook":"*","description":"The tutorial is created for Girls Coding Day","extension":null},"file":{"path":"Bootstrap/2-Bootstrap-CSS.md","mtime":"2017-06-30T14:30:05.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-02-12T07:38:59.260Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-downloadpdf/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

